package com.library.entity.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ColumnWidth(20)
public class BookCarVo {

	@ExcelProperty("书号")
	@ApiModelProperty(value = "书号")
	private String bookCode;

	@ExcelProperty("书名称")
	@ApiModelProperty(value = "书名称")
	private String bookName;

	@ExcelProperty("定价")
	@ApiModelProperty(value = "定价")
	private BigDecimal price;

	@ExcelIgnore
	@ApiModelProperty(value = "出版单位编码")
	private String publishCompanyCode;

	@ExcelProperty("出版单位")
	@ApiModelProperty(value = "出版单位名称")
	private String publishCompanyName;

	@ExcelIgnore
	@ApiModelProperty(value = "出版时间")
	private Date publishTime;

	@ExcelProperty("出版时间")
	@ApiModelProperty(value = "出版时间")
	private String publishTimeStr;

	@ExcelProperty("作者")
	@ApiModelProperty(value = "作者")
	private String author;

	@ExcelProperty("类别")
	@ApiModelProperty(value = "类别")
	private String category;

}
